package person;

import java.util.HashMap;

public class DayPlan {
	private HashMap<String, Interval> schedule = new HashMap<String, Interval>();

	public DayPlan() {
		for (int i = 0; i < DayList.days.length; i++)
			schedule.put(DayList.days[i], null);
	}

	public Interval getInterval(String dayName) {
		return schedule.get(dayName);
	}

	public void setPlan(String day, Interval ivl) {
		schedule.put(day, ivl);
	}

	public void wipePlan() {
		schedule.clear();
		for (int i = 0; i < DayList.days.length; i++)
			schedule.put(DayList.days[i], null);
	}

}
